$OpenBSD: patch-Imakefile,v 1.3 2010/10/23 10:52:58 landry Exp $
--- Imakefile.orig	Thu Sep  2 08:33:47 1999
+++ Imakefile	Sat Oct 23 04:51:29 2010
@@ -74,15 +74,11 @@ XCOMM
 /* IRIX */
 #ifdef	SGIArchitecture
 #define	StartupSound	myu.aiff
+#ifndef OpenBSDArchitecture
 #define	SoundLibrary	-laudio -laudiofile
+#endif /* !OpenBSD/sgi */
 #endif	/* SGIArchitecture */
 
-/* HP-UX */
-#ifdef	HPArchitecture
-#define	StartupSound	myu.au
-#define	SoundLibrary	-lAlib
-#endif	/* HPArchitecture */
-
 /* SunOS, Solaris */
 #ifdef	SunArchitecture
 #define	StartupSound	myu.au
@@ -104,8 +100,14 @@ XCOMM
 /* FreeBSD */
 #if defined(i386BsdArchitecture) && (defined(i386FreeBsd) || defined(FreeBSDArchitecture))
 #define	StartupSound	myu.au
+EXTRA_LIBRARIES = -lxpg4
 #endif	/* i386BsdArchitecture && (i386FreeBsd || FreeBSDArchitecture) */
 
+/* OpenBSD */
+#ifdef OpenBSDArchitecture
+#define	StartupSound	myu.au
+#endif	/* OpenBSDArchitecture */
+
 #else	/* USE_NETAUDIO */
 
 /* netaudio (NCDaudio) */
@@ -234,6 +236,6 @@ XCOMM
 
 #ifdef	USE_SOUND
 install:: sounds/StartupSound
-	MakeDir(EmiClockLib)
-	$(INSTALL) -c $(INSTAPPFLAGS) sounds/StartupSound EmiClockLib/StartupSound
+	MakeDir($(DESTDIR)EmiClockLib)
+	$(INSTALL) -c $(INSTAPPFLAGS) sounds/StartupSound $(DESTDIR)EmiClockLib/StartupSound
 #endif	/* USE_SOUND */
